﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Client2.DataService;

namespace Client2.Classes.DataSource.Driver
{
    /// <summary>
    /// Datasouce, what work with real wcf service 
    /// </summary>
    public class Wcf : IDataSource
    {
        private Client2.DataService.AppServiceClient m_service;

        public Wcf()
        {
            m_service = new Client2.DataService.AppServiceClient();
        }

        public Client2.DataService.User GetUser(string login, string password)
        {
            return m_service.Login(login, password, null);
        }
    }
}